#include <iostream>
#include "MyStack.h"

using namespace std;

int main() {
	MyStack<int> test;
	test.push(1); 
	test.showCapacity();
	test.push(2);
	test.push(3);
	/*
	test.push(4);
	test.push(5);
	test.push(6);
	test.push(7);
	test.push(8);
	*/
	test.showCur();
	cout << "Top of stack:" << test.top() << endl;
	test.showCapacity();

	test.pop();
	test.showCur();
	cout << "Top of stack:" << test.top() << endl;
	test.showCapacity();

	test.pop();
	test.showCur();
	cout << "Top of stack:" << test.top() << endl;
	test.showCapacity();

	cout <<"stack is empty? "<<test.empty() << endl;
	system("pause");
	return 0;
}